home *** CD-ROM | disk | FTP | other *** search
- this.initPUAlpha = 12;
- this.puHaveMax = 600;
- this.createPU = function(val)
- {
- var t = this;
- t.attachMovie("pu","pu" + t.pud,t.pud);
- var n = t["pu" + t.pud];
- if(t.gameType == "real")
- {
- n._x = random(t.stageW - t.startX - n._width / 2) + t.startX;
- }
- else
- {
- n._x = t.startX + random(80) + 30;
- }
- n._y = (- n._height) / 2;
- n._xscale = n._yscale = 120;
- n.my = Math.random() * 1 + 0.2;
- n.typ = "pu";
- if(val == 0)
- {
- val = random(n.graphic._totalframes) + 1;
- }
- n.graphic.gotoAndStop(val);
- n.val = val;
- t.heartA.push(n);
- t.addD("pu");
- t.puDel = random(300) + 250;
- };
- this.cPuText = function(x, y, typ)
- {
- var t = this;
- t.attachMovie("puText","pt" + t.td,t.td);
- var n = t["pt" + t.td];
- n.txtMC.gotoAndStop("pu" + typ);
- n.txtMC2.gotoAndStop("pu" + typ);
- n._x = x;
- n._y = y;
- if(n._x > t.stageW - n._width / 2)
- {
- n._x = t.stageW - n._width / 2;
- }
- if(t.soundPlay == "true")
- {
- t.puSound.start();
- }
- t.addD("t");
- };
- this.puFunc1 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.hSpuTim = 0;
- t.hmyc = 0.6;
- t.gameDisplay.p1._alpha = 100;
- t.gameDisplay.p10._alpha = t.initPUAlpha;
- }
- else
- {
- t.launcher.hSpuTim = 0;
- t.hmyc = t.inithmyc;
- t.gameDisplay.p1._alpha = t.initPUAlpha;
- t.gameDisplay.p10._alpha = t.initPUAlpha;
- }
- };
- this.puFunc2 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.gpuTim = 0;
- t.grav = 0;
- t.gameDisplay.p2._alpha = 100;
- t.gameDisplay.p9._alpha = t.initPUAlpha;
- }
- else
- {
- t.launcher.gpuTim = 0;
- t.grav = t.initGrav;
- t.gameDisplay.p2._alpha = t.initPUAlpha;
- t.gameDisplay.p9._alpha = t.initPUAlpha;
- }
- };
- this.puFunc3 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.cpuTim = 0;
- t.chargeS = t.maxPower;
- t.gameDisplay.p3._alpha = 100;
- t.gameDisplay.p8._alpha = t.initPUAlpha;
- }
- else
- {
- t.launcher.cpuTim = 0;
- t.chargeS = t.initChargeS;
- t.gameDisplay.p3._alpha = t.initPUAlpha;
- t.gameDisplay.p8._alpha = t.initPUAlpha;
- }
- };
- this.puFunc4 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.mSpuTim = 0;
- t.launcher.maxS = 5;
- t.gameDisplay.p4._alpha = 100;
- t.gameDisplay.p12._alpha = t.initPUAlpha;
- }
- else
- {
- t.launcher.mSpuTim = 0;
- t.launcher.maxS = t.launcher.initMaxS;
- t.gameDisplay.p4._alpha = t.initPUAlpha;
- t.gameDisplay.p12._alpha = t.initPUAlpha;
- }
- };
- this.puFunc5 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.hSIpuTim = 0;
- t.heartSize = 150;
- t.gameDisplay.p5._alpha = 100;
- t.gameDisplay.p11._alpha = t.initPUAlpha;
- }
- else
- {
- t.launcher.hSIpuTim = 0;
- t.heartSize = t.initHeartSize;
- t.gameDisplay.p5._alpha = t.initPUAlpha;
- t.gameDisplay.p11._alpha = t.initPUAlpha;
- }
- };
- this.puFunc6 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.comboCount = 1;
- t.gameDisplay.p6._alpha = 100;
- }
- };
- this.puFunc7 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.tSpuTim = 0;
- t.numShots = 3;
- t.gameDisplay.p7._alpha = 100;
- }
- else
- {
- t.launcher.tSpuTim = 0;
- t.numShots = 1;
- t.gameDisplay.p7._alpha = t.initPUAlpha;
- }
- };
- this.puFunc8 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.cpuTim = 0;
- t.chargeS = t.initChargeS * 0.7;
- t.gameDisplay.p8._alpha = 100;
- t.gameDisplay.p3._alpha = t.initPUAlpha;
- }
- };
- this.puFunc9 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.gpuTim = 0;
- t.grav = t.initGrav * 1.5;
- t.gameDisplay.p9._alpha = 100;
- t.gameDisplay.p2._alpha = t.initPUAlpha;
- }
- };
- this.puFunc10 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.hSpuTim = 0;
- t.hmyc = 1.3;
- t.gameDisplay.p10._alpha = 100;
- t.gameDisplay.p1._alpha = t.initPUAlpha;
- }
- };
- this.puFunc11 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.hSIpuTim = 0;
- t.heartSize = 70;
- t.gameDisplay.p11._alpha = 100;
- t.gameDisplay.p5._alpha = t.initPUAlpha;
- }
- };
- this.puFunc12 = function(which)
- {
- var t = this;
- if(which == true)
- {
- t.launcher.mSpuTim = 0;
- t.launcher.maxS = 1;
- t.gameDisplay.p12._alpha = 100;
- t.gameDisplay.p4._alpha = t.initPUAlpha;
- }
- };
-